import request from "@/utils/request.js";
const prevUrl = '/help/'

export default {
    list() {
        return request({
            url: `${prevUrl}list`,
            method: 'get'
        })
    },
    add(data) {
        return request({
            url: `${prevUrl}add`,
            method: 'post',
            data: data
        })
    },
    update(data) {
        return request({
            url: `${prevUrl}update`,
            method: 'put',
            data: data
        })
    },
    saveContent(data) {
        return request({
            url: `${prevUrl}updateContent`,
            method: 'put',
            data: data
        })
    },
    updateImg(formData) {
        return request({
            url: `/uploadImg`,
            method: 'post',
            data: formData
        })
    }

}